package com.aspose.cells;

class zhf extends zhd {
   private boolean e = true;
   private String f;
   private int g;
   private int h;
   private double i;

   public zhf(String var1, int var2, int var3, boolean var4) {
      super(var4);
      this.a = new zrh(var1, var2, var3, true, (zrh)null);
      this.e();
   }

   protected boolean d() {
      return this.e;
   }

   protected void b() {
   }

   protected void a() {
      if (this.f == null) {
         this.e = true;
      } else {
         if (this.a.a(this.f, this.h)) {
            if (this.a.b() == this.g) {
               this.e = true;
               return;
            }

            if (this.b != null && this.b.a(this.f, this.h)) {
               if (this.b.b() == this.g) {
                  return;
               }

               if (this.b.d() != null) {
                  this.b = new zrh(this.f, this.g, this.h, this.b.d());
                  this.f();
                  return;
               }
            }

            if (this.a.d() != null) {
               this.b = new zrh(this.f, this.g, this.h, this.a.d());
               this.f();
               return;
            }
         }

         this.b = new zrh(this.f, this.g, this.h, this.a.d());
         this.f();
      }
   }

   public double c() {
      return this.i;
   }
}
